const mongoose = require('mongoose')
const { baseModel } = require('./baseModel')
const jobAndMenuSchema = new mongoose.Schema({
    //职位id
    jobId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'Job',
        required:true
    },
    //菜单id
    MenuId:{
        type:mongoose.Schema.Types.ObjectId,
        ref:'Menu',
        required:true
    },
    ...baseModel
})
module.exports = jobAndMenuSchema